package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.manager.entity.SysRole;
import com.atguigu.spzx.manager.vo.sysRole.SysRoleQueryReqVo;
import com.atguigu.spzx.manager.vo.sysRole.SysRoleQueryRespVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * SysRoleMapper
 * </p>
 *
 * @author flyduck
 * @since 2023/10/23
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 条件分页查询
     * @param pageParam
     * @param sysRoleQueryReqVo
     * @return
     */
    Page<SysRoleQueryRespVo> getRolePageByQuery(@Param("pageParam") Page<SysRole> pageParam, @Param("vo") SysRoleQueryReqVo sysRoleQueryReqVo);

}
